/*
 * MapView.hpp
 *
 *  Created on: 12.10.2013
 *      Author: dima
 */

#ifndef MAPVIEW_HPP_
#define MAPVIEW_HPP_


#include "../Model/GameObjectModel.hpp"
#include "../Model/MapModel.hpp"

#include "../Resources/IMGLoader.hpp"

#include <SDL/SDL.h>
#include <map>


namespace Tanks
{

namespace View
{

  class MapView
  {
  public:

    MapView(Tanks::Model::MapModel * argMapModel,
            SDL_Surface * argScreen);

    void AddImage(int argImgNr, SDL_Surface * argImage)
    { m_images.insert(std::pair<int, SDL_Surface *>(argImgNr, argImage)); }

    void Draw();

  private:

    Tanks::Model::MapModel * m_MapModel;

    SDL_Surface * m_screen;

    std::map<int, SDL_Surface *> m_images;

  };

}

}


#endif /* MAPVIEW_HPP_ */
